package com.zhl.springboot_zipkin_study_service_api.service;

import com.zhl.springboot_zipkin_study_service_api.pojo.Userinfo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import com.zhl.springboot_zipkin_study_service_api.service.hystrix.UserinfoServiceHystrix;

import java.util.ArrayList;

@FeignClient(value="service", fallback = UserinfoServiceHystrix.class)
public interface UserinfoService {

    @RequestMapping("/findall")
    ArrayList<Userinfo> findall(
            @RequestParam(value="test_value") String test_value
    );
}
